﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Nha_Hang_Khach_San.Khach_San.KhachHang;

namespace Nha_Hang_Khach_San.Khach_San
{
    public partial class PhieuThuePhong : ChildWindow
    {
        string tenPhong="";
        //
        public PhieuThuePhong(string _tenPhong)
        {
            InitializeComponent();
            tenPhong = _tenPhong;         
        }

        private void ChildWindow_Loaded(object sender, RoutedEventArgs e)
        {
            this.Title = "Phiếu thuê phòng " + tenPhong;
            DateTime dateNow = DateTime.Now;
            txtNgayNP.Text = dateNow.ToShortDateString().ToString();
            txtGioNP.Text = dateNow.ToShortTimeString().ToString();
        }

        private void OKButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = true;
        }

        private void CancelButton_Click(object sender, RoutedEventArgs e)
        {
            this.DialogResult = false;
        }

        private void btnThemKH_Click(object sender, RoutedEventArgs e)
        {
            ThemKhachHang themkh = new ThemKhachHang(tenPhong);
            themkh.Show();
        }

        
    }
}

